<#assign s=JspTaglibs["/META-INF/tld/struts-tags.tld"] />
<#assign sjr=JspTaglibs["/META-INF/tld/struts-jquery-richtext-tags.tld"]/>
<@s.url value="" var="cntxpth"/>
<@s.set name="contextPath" value="#cntxpth"  />
<@s.set name="templateName" value="#templateName"/>
<@s.set name="resourcePath">/${contextPath}templates/${templateName}</@s.set>
<div class="box-1">
    <img src="${resourcePath}/images/blog/folder_full.png" alt="">

    <div class="extra-wrap">
        <h2><@s.property value="post.title"/></h2>

        <p><@s.property value="post.content" escape=false /></p>
    </div>
</div>
<div class="grid_12 box-2 pad-1">
    <div>
        <p class="text-3">
            <@s.url action="removePost" namespace="/blog" var="removePostLink">
                <@s.param name="post.id" value="post.id" />
            </@s.url>
            <@s.url action="modifyPost" namespace="/blog" var="modifyPostLink">
                <@s.param name="post.id" value="post.id" />
            </@s.url>
            <a href="${modifyPostLink}">
            <img src="${resourcePath}/images/blog/folder_edit.png" alt=""><span>Modify post</span>
            </a>
            <a href="${removePostLink}">
            <img src="${resourcePath}/images/blog/folder_delete.png" alt=""><span>Remove post</span>
            </a>
        </p>
    </div>
</div>
